/*
 * Copyright 2020-2021 redragon.dongbin
 *
 * This file is part of redragon-erp/赤龙ERP.

 * redragon-erp/赤龙ERP is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.

 * redragon-erp/赤龙ERP is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with redragon-erp/赤龙ERP.  If not, see <https://www.gnu.org/licenses/>.
 */
package com.erp.cux.workflow.dao;

import java.util.List;

import org.redragon.framework.hibernate.DaoCRUDIF;
import org.redragon.framework.hibernate.model.Pages;
import com.erp.cux.workflow.dao.model.CuxWorkflowConfLine;
import com.erp.cux.workflow.dao.model.CuxWorkflowConfLineCO;

public interface CuxWorkflowConfLineDao extends DaoCRUDIF<CuxWorkflowConfLine, CuxWorkflowConfLineCO>{
    
    //查询工作流配置行数量
    public abstract int getCuxWorkflowConfLineCountByHeadCode(String headCode);
    
    //查询工作流配置行列表(分页)
    public abstract List<CuxWorkflowConfLine> getCuxWorkflowConfLineListByHeadCode(Pages pages, CuxWorkflowConfLineCO paramObj);
    
    //获取工作流的第一个节点
    public abstract CuxWorkflowConfLine getFirstTaskByWorkflow(String headCode);
    
    //获取当前节点的所有分支节点
    public abstract List<CuxWorkflowConfLine> getBranchTaskListByTaskCode(String headCode, String taskCode);
}